package com.wty.learnsping.servletConfig;


import com.wty.learnsping.listener.MyListener1;
import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.context.annotation.Bean;

//@Configuration
public class ListenerConfig {

    @Bean
    public ServletListenerRegistrationBean myListener(){
        ServletListenerRegistrationBean myListener=new ServletListenerRegistrationBean(new MyListener1());
        return myListener;
    }


}
